package irv3

import "github.com/astaxie/beego/orm"

type FkDeviceZone struct {
	Id         int    `orm:"Column(id)"`
	FkDeviceId string `orm:"Column(fk_device_id)"`
	Name       string `orm:"Column(_name)"`
}

func (f *FkDeviceZone) TableName() string {
	return FkDeviceZoneTBName()
}

func FindAllFkDeviceZone() (*[]FkDeviceZone, error) {
	o := orm.NewOrm()
	o.Using("irv3")
	qs := o.QueryTable(FkDeviceZoneTBName())
	fkdeviceZones := new([]FkDeviceZone)
	_, err := qs.All(fkdeviceZones)
	return fkdeviceZones, err
}
